<include file="Public/head"/>
<link href="__PUBLIC__/qwadmin/css/shen/shen.css" rel="stylesheet" type="text/css" />
<style>
/*#fo input{
    width:70%;
    margin:10px ;
}*/


</style>
<body class="no-skin">
<style>
body .demo-class .layui-layer-title{background:#6495ED; color:#fff; border: none;}
body .demo-class .layui-layer-btn{border-top:1px solid #E9E7E7}
body .demo-class .layui-layer-btn a{background:#333;}
body .demo-class .layui-layer-btn .layui-layer-btn1{background:#999;}



</style>
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                <div style="width:23%;height:400px;border:1px solid #ccc;margin:10% 35%;box-shadow:1px 1px 15px #ccc;" id="fo">
                <div class="dao" style="background-color:#5CB85C;font-size:20px;">工作餐添加:</div>  <!-- 导航头 -->
                    <form  id="formID">
                        <div class="form-group yyy" style="">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">A套餐:</b></label>
                            <input type="text" class="form-control" name="aname" id="exampleInputEmail1" placeholder="请输入餐名...." style="width:80%;">
                        </div>
                        
                        <div class="form-group yyy" style="">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">B套餐:</b></label>
                            <input type="text" class="form-control" name="bname" id="exampleInputEmail1" placeholder="请输入餐名...." style="width:80%;">
                        </div>

                        <div class="form-group yyy" style="">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">时间:</b></label><br>  
                            <!-- <input type="text" class="form-control" name="time" id="exampleInputEmail1" placeholder="请输入时间...." style="width:80%;"> -->
                            <input onClick="laydate()" name="time" placeholder="请输入开始时间...." style="width:60%;margin-left:-0px;">
                        </div>
                        

                       
                        


                        <div onclick="can()" style="width:100px;height:30px;background-color:#FFA500;border:1px solid #ccc;border-radius:50px;text-align:center;line-height:30px;color:#fff;float:left; bottom: 0;margin-left:38%;margin-top:12%;cursor:pointer;"><b>提交</b></div>
                    </form>
                </div>
                    
                    


                


            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <!-- <include file="Public/footer"/> -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/js/laydate/laydate.js"></script>
<script>    
;!function(){
laydate({
   elem: '#demo'
})
}();

</script>
<script>
function can()
{
     $.ajax({
         type: "POST",
         url:"{:U('Tong/can')}",
         data:$('#formID').serialize(),// 要提交的表单 
         beforeSend:function(){
                    layer.load(0, {shade: false});
                },
         success: function(msg) {
           if (msg == 1111) {
                layer.msg('发布成功!!!');
                // location.href="{:U('Index/index')}";
            }else{
                layer.msg('发布失败!!!');
            }
         },
          complete: function() {
                     layer.closeAll('loading');
                }
     });
}




</script>



</body>

</html>
